package com.springboot.actuator;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class CustomerHealthIndicator implements HealthIndicator{

    @Override
    public Health health() {
        return  Health.down()
            .withDetail("service", "customer")
            .status("200")
            .build();
    }
    
}
